
package com.eltonkent.util;

import android.content.Context;
import android.text.Editable;

import com.eltonkent.R;
import com.eltonkent.db.Configuration;

public class StringUtil
{
	public static String validatePassword(Context context, Editable password, Editable repeat)
	{
		if(password.length() < Configuration.MIN_PASS_CHARS)
		{
			return context.getResources().getString(R.string.password_warning);
		} else if(!password.toString().equals(repeat.toString()))
			return context.getResources().getString(R.string.password_no_match);
		return "OK";
	}
}
